﻿@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Form.cshtml";
}

<script>
    var keyValue = $.request("keyValue");
    $(function () {
        initControl();
        $.ajax({
            url: "/SystemManage/Action/GetFormJson",
            data: { keyValue: keyValue },
            dataType: "json",
            async: false,
            success: function (data) {
                $("#form1").formSerialize(data);
                $("#form1").find('.form-control,select,input').attr('readonly', 'readonly');
                $("#form1").find('div.ckbox label').attr('for', '');
            }
        });
    });

    function initControl() {
        $("#actionowner").bindSelect({
            url: "/SystemManage/Action/GetTreeSelectJson",
        });
    }

</script>
<form id="form1">
    <div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#">基本信息</a></li>
            
        </ul>
        <div style="padding-top: 20px; margin-right: 30px;">
           <table class="form">
                <tr>
                    <th class="formTitle">动作名称</th>
                    <td class="formValue">
                        <input id="actionname" name="actionname" type="text" class="form-control required" />
                    </td>
                    <th class="formTitle">动作类型</th>
                    <td class="formValue">
                        <input id="actiontype" name="actiontype" type="text" class="form-control required" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">动作所属</th>
                    <td class="formValue">
                        <select id="actionowner" name="actionowner" class="form-control required">
                        </select>
                    </td>
                    <th class="formTitle">动作编码</th>
                    <td class="formValue">
                        <input id="actioncode" name="actioncode" type="text" class="form-control required" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">动作路径</th>
                    <td class="formValue">
                        <input id="actionurl" name="actionurl" type="text" class="form-control required" />
                    </td>
                    <th class="formTitle">动作参数</th>
                    <td class="formValue">
                        <input id="actionparam" name="actionparam" type="text" class="form-control required" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle" valign="top" style="padding-top: 5px;">控制器名称</th>
                    <td class="formValue" colspan="3">
                        <input id="controlername" name="controlername" type="text" class="form-control required" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</form>

